package wdk

import (
	"github.com/bububa/opentaobao/core"
	"github.com/bububa/opentaobao/model/wdk"
)

// AlibabaWdkChannelUserSync 会员同步
// alibaba.wdk.channel.user.sync
//
// 会员同步
func AlibabaWdkChannelUserSync(clt *core.SDKClient, req *wdk.AlibabaWdkChannelUserSyncAPIRequest, session string) (*wdk.AlibabaWdkChannelUserSyncAPIResponse, error) {
	var resp wdk.AlibabaWdkChannelUserSyncAPIResponse
	err := clt.Post(req, &resp, session)
	if err != nil {
		return nil, err
	}
	return &resp, nil
}
